package com.defangit.production.bll;

import com.defangit.production.domain.WorkShop;
import laogen.util.entities.Finder;

/**
 * 车间业务逻辑
 */
public interface WorkShopBll extends CommonBusinessLogic<WorkShop>{
    WorkShop addWorkShop(WorkShop shop);
    WorkShop updateWorkShop(WorkShop shop);
    boolean deleteWorkShop(int id);
    WorkShopFinder findAll();
    WorkShopFinder findUsed();
    interface WorkShopFinder extends Finder<WorkShop> {
        WorkShopFinder workShopUsed(boolean notUsed);
        WorkShopFinder name(String name);
        WorkShopFinder workShopId(Integer id);
    }
}
